from Tools import Log,send_email
import pytest,os
if __name__ == '__main__':
    pytest.main([r'C:\Users\Kaka\PycharmProjects\PythonProject9.9月考\Case\test_baidu.py','-s','--alluredir=results'])

    os.system(f'allure generate results -o allure-report --clean')

    send_email(['log.txt','allure-report/index.html'])
    Log()